<?php
/*
 * Stub to setup services and boostrap the application
 */
use Zend\Http\PhpEnvironment;
use Zend\ServiceManager\ServiceManager;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\EventManager\EventManager;
use Zend\ModuleManager\ModuleManager;

// setup service manager
$serviceManager = new ServiceManager(new ServiceManagerConfig);
$serviceManager->setService('ApplicationConfig', $appConfig);
// these are already setup by the default ServiceManagerConfig instance, passed in above...
//$serviceManager->setService('EventManager', new EventManager());
//$serviceManager->setService('ModuleManager', new ModuleManager());
//$serviceManager->setService('Request', new PhpEnvironment\Request());
//$serviceManager->setService('Response', new PhpEnvironment\Response());

// load in user-specified modules
$serviceManager->get('ModuleManager')->loadModules();

// Initiate bootstrapper...
$serviceManager->get('Application')->bootstrap();

//$application = new Application($config, $serviceManager);
